package com.sunnay.annotation;


import com.sunnay.enums.FieldGroup;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Inherited
public @interface SunayField {
    String comment() default "";

    String errorText() default "";

    boolean nullable() default true;

    boolean isEmpty() default true;

    boolean required() default false;

    int maxLength() default -1;

    int minLength() default -1;

    int maxCharLength() default -1;

    int minCharLength() default -1;

    boolean specialChar() default false;

    boolean valid() default false;

    boolean validateCollection() default false;

    String strFormat() default "";

    FieldGroup fieldGroup() default FieldGroup.DEFAULT;
}